﻿using Architecture.Api.Application.Commands.ImmuneInFormationCommand;
using Architecture.Domain.Services.Interface;
using MediatR;

namespace Architecture.Api.Application.CommandHandlers.ImmuneInFormationHandler
{
    public class ImmuneInFormationRemoveCommandHandler : IRequestHandler<ImmuneInFormationInfoRemoveCommand, int>
    {
        private readonly ICultureService _cultureService;

        public ImmuneInFormationRemoveCommandHandler(ICultureService cultureService)
        {
            _cultureService = cultureService;

        }

        public async Task<int> Handle(ImmuneInFormationInfoRemoveCommand request, CancellationToken cancellationToken)
        {
            return await _cultureService.DeleteImmuneInFormation(request.iId);
        }
    }
}
